<template>
  <div class="public-class">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="公开课管理" name="1">
        <classmanage v-if=" activeName === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="公开课推荐" name="2">
        <classrecommend v-if=" activeName === '2'"/>
      </el-tab-pane>
      <!--<el-tab-pane label="公开课统计" name="3">-->
        <!--<classstatistic v-if=" activeName === '3'"/>-->
      <!--</el-tab-pane>-->
    </el-tabs>
  </div>
</template>

<script>
import Classmanage from './components/publicclass/classmanage'
import Classrecommend from './components/publicclass/classrecommend'
// import Classstatistic from './components/publicclass/classstatistic'
export default {
  components: {
    Classmanage,
    Classrecommend
    // Classstatistic
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss" scoped>
.public-class {
  padding: 0px 20px;
}
</style>

